/********************************************************************
//	created:	2010/12/03
//	        	3:12:2010   15:31
//	filename: 	JUtility.h
//	path:	    c:\Documents and Settings\junjiewang\Desktop\Game Architecture\JJEngine\JJEngine\Core\inlcude
//	author:		J.J. WANG
//	purpose:	
//  Copyright (c) All rights reserved by J.J. WANG
*********************************************************************/

#ifndef _JUTILITY_H_
#define _JUTILITY_H_
#include "JSystem.h"

namespace JJc{

bool    LoadFile(__in const wchar* fileName, __out int8*& pBuffer, __out uint32& fileSize);
bool    SaveFile(__in const wchar* fileName, __in const int8* pBuffer, __in const uint32 fileSize);


wstring     String2WString(__in const char* pszSrc, __in const size_t nLen);
string      WString2String(__in const wchar*);

wstring		Number2WString(__in const int32& i);
wstring		Number2WString(__in const uint32& i);
wstring		Number2WString(__in const double& i);

}//end namespace


#endif //_JUTILITY_H_